#!/bin/sh
currentdate=$(date +%m%d%H%M%S)
ESSID=$(iwconfig wlan1 2>/dev/null |grep -oP '(?<=ESSID:").*?(?=")'| grep ^"hotspot" | grep -oP '\d+')
cd /userdata/workdir/bag/
rostopic echo /robot_event >> excep_${currentdate}_test$1.log
